package com.example.elderlycare.controller.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

public class ComplaintRequestBody {
    @Data
    public static class AddComplaint {
        @NotNull
        private Integer complainWayId;
        @NotNull
        private Integer elderId;
        @NotBlank
        private String defendant;
        @NotBlank
        private String accuser;
        @NotBlank
        private String acceptor;
        @NotNull
        private Integer handleStatusId;
        @NotNull
        private Integer replyStatusId;
        private Integer replySatisfactionId;
    }

    @Data
    public static class UpdateComplaint {
        @NotNull
        private Integer id;
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date time;
        private Integer complainWayId;
        private Integer elderId;
        private String defendant;
        private String accuser;
        private String acceptor;
        private Integer handleStatusId;
        private Integer replyStatusId;
        private Integer replySatisfactionId;
    }
}
